package org.nerve.sprider.domain;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;
import java.util.Date;

/**
 * org.nerve.study.sprider.domain
 * Created by zengxm on 2016/3/17 0017.
 */
@DatabaseTable(tableName = "page")
public class WebPage implements Serializable {

	@DatabaseField(generatedId = true)
	private long id;
	@DatabaseField
	private String title;
	@DatabaseField
	private String url;
	@DatabaseField
	private long textLen;
	@DatabaseField
	private String text;
	@DatabaseField
	private long htmlLen;
	@DatabaseField
	private String html;
	@DatabaseField
	private String htmlMd5;
	@DatabaseField
	private String domain;
	@DatabaseField
	private Date addDate;
	@DatabaseField
	private int linkCount;

	public int getLinkCount() {
		return linkCount;
	}

	public WebPage setLinkCount(int linkCount) {
		this.linkCount = linkCount;
		return this;
	}

	public String getDomain() {
		return domain;
	}

	public WebPage setDomain(String domain) {
		this.domain = domain;
		return this;
	}

	public long getId() {
		return id;
	}

	public WebPage setId(long id) {
		this.id = id;
		return this;
	}

	public String getTitle() {
		return title;
	}

	public WebPage setTitle(String title) {
		this.title = title;
		return this;
	}

	public String getUrl() {
		return url;
	}

	public WebPage setUrl(String url) {
		this.url = url;
		return this;
	}

	public long getTextLen() {
		return textLen;
	}

	public WebPage setTextLen(long textLen) {
		this.textLen = textLen;
		return this;
	}

	public String getText() {
		return text;
	}

	public WebPage setText(String text) {
		this.text = text;
		return this;
	}

	public long getHtmlLen() {
		return htmlLen;
	}

	public WebPage setHtmlLen(long htmlLen) {
		this.htmlLen = htmlLen;
		return this;
	}

	public String getHtml() {
		return html;
	}

	public WebPage setHtml(String html) {
		this.html = html;
		return this;
	}

	public String getHtmlMd5() {
		return htmlMd5;
	}

	public WebPage setHtmlMd5(String htmlMd5) {
		this.htmlMd5 = htmlMd5;
		return this;
	}

	public Date getAddDate() {
		return addDate;
	}

	public WebPage setAddDate(Date addDate) {
		this.addDate = addDate;
		return this;
	}
}
